import request from '@/router/axios';
import { baseUrl } from '@/config/env';


//查询设备
export const getfacilitylist = (data) => request({
    url: baseUrl + '/api/facility',
    method: 'get',
    params: data
});
// 新增设备
export const addfacility = (list) => request({
    url: baseUrl + '/api/facility',
    method: 'post',
    data: list
});
// 修改用户
export const eidfacility = (list) => request({
    url: baseUrl + '/api/facility',
    method: 'put',
    data: list
});
// 删除用户
export const dlefacility = (list) => request({
    url: baseUrl + '/api/facility',
    method: 'delete',
    data: list
});
// 查询角色
export const rolesAll = () => request({
    url: baseUrl + '/api/roles/all',
    method: 'get'
})


